
/**
*@author Kenneth WU
*@version 18/2/2012
//********************************************/

package player;

public class Player {
	/**
	 Attribute
	 integer so that you can manage the spacing
	*/
	private int playerID;
	private int SEPoint;
	
	/** the cell that the player is locate*/
	private int cell;
	
	/** gridX and gridY is for other output class to print out*/
	/** x coordinate of player */
	private int gridX;
	/** y coordinate of player*/
	private int gridY;
	private String role; 	/** Role of player*/
	private boolean[] magicCards; /** Contain the Magic CardID, Each player can own 3 different magic card */
	
	/** Constructor*/
	public Player(){
		/** Set it to 3 SE point at the beginning*/
		SEPoint = 3;
		cell = 0;
		gridX = 6;
		gridY = 5;
		playerID = 0;
		role = "unknown";
		magicCards = new boolean[3];
		for(int i =0; i < 3; i++)
			magicCards[i] = false; /**Each player own the escape Hospital Card by default*/
		magicCards[0] = true;
	}
	
	public int getCell() {
		return cell;
	}

	public void setCell(int cell) {
		this.cell = cell;
	}

	public int getGridX() {
		return gridX;
	}

	public int getGridY() {
		return gridY;
	}

	public void setLocation(int gridX, int gridY){
		this.gridX = gridX;
		this.gridY = gridY;
	}
	
	public int getPlayerID() {
		return playerID;
	}

	public void setPlayerID(int playerID) {
		this.playerID = playerID;
	}

	public int getSEPoint() {
		return SEPoint;
	}

	public void setSEPoint(int sEPoint) {
		SEPoint = sEPoint;
	}
	
	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public boolean getMagicCard(int id){
		return magicCards[id];
	}
	
	public void setMagicCards(int id, boolean putIn){
		magicCards[id] = putIn;
	}	
}